package cl.zeke.pizzastore.jms;

import cl.zeke.comun.dto.Persona;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteTopicHandler2 {
    
    private static Logger log = LoggerFactory.getLogger(RemoteTopicHandler2.class);
    
    public void recibirPersona(Persona p) {
        String salida;
        salida = "p: " + p.getNombre();
        for (Persona f : p.getFamiliares()) {
            salida += " f: " + f.getNombre() + " " + f.getEdad();
        }
        log.debug(salida);
    }
    
    
}
